package main

import "fmt"

type Student struct {
	Name string
	Age  int
}

func main() {
	// 案例2
	var ch2 = make(chan interface{}, 10)
	// 插入值
	ch2 <- 100
	ch2 <- true
	ch2 <- Student{Name: "rice", Age: 21}
	// 取值
	fmt.Println(<-ch2)
	fmt.Println(<-ch2)
	fmt.Println(<-ch2)
}
